@layout("/common/_curd/_container.html"){

<script type="text/javascript">
	var ctx = "${basePath}";
	var grid_selector = "#grid-table";
	var pager_selector = "#grid-pager";
	
	$(function(){
		initGrid();
		initMenuBtn("btns", "${code}");
	});
	
	function initGrid(){
		var grid_url = ctx + "/${code}/list";
		var _colnames = ["主键", 
						"认证姓名", 
						"昵称", 
						"密码", 
						"手机", 
						"邮箱", 
						"性别","所属银行", 
						"启用状态", 
						"创建时间", 
						"头像地址"];
		var _colmodel = [{name:"id", index:"id", width:100},
						{name:"name", index:"name", width:100},
						{name:"username", index:"username", width:100},
						{name:"passwrod", index:"passwrod", width:100},
						{name:"phone", index:"phone", width:100},
						{name:"email", index:"email", width:100},
						{name:"sex", index:"sex", width:100},{name:"bank_id", index:"bank_id", width:100},
						{name:"status", index:"status", width:100},
						{name:"createime", index:"createime", width:100},
						{name:"avatar", index:"avatar", width:100}];
		
		jQuery(grid_selector).jqGrid({
			url : grid_url,
		    shrinkToFit : true,
			colNames : _colnames,
			colModel : _colmodel, 
			jsonReader : {id :"id"},
			pager : pager_selector,
			postData : {sort : "id", order : "desc"}
		});
	}
</script>


	<!-- 配置 grid -->
	<div class="row">
		<div class="col-xs-12 tb-grid">
			<!-- 配置 查询 -->
			@ var _col=[
@		{name:"主键", index:"id", type:"text"},
			@		{name:"认证姓名", index:"name", type:"text"},
			@		{name:"昵称", index:"username", type:"text"},
			@		{name:"密码", index:"passwrod", type:"text"},
			@		{name:"手机", index:"phone", type:"text"},
			@		{name:"邮箱", index:"email", type:"text"},
			@		{name:"性别", index:"sex", type:"text"},
			@		{name:"bank_id", index:"bank_id", type:"text"},
			@		{name:"启用状态(1.启用,2.禁用)", index:"status", type:"text"},
			@		{name:"创建时间", index:"createime", type:"text"},
			@		{name:"头像地址", index:"avatar", type:"text"}							
			@];
			@ include("/common/_function/_search.html",{"col":_col}){}
			<!-- 按钮 -->
			<div class="welljq well-sm" id="btns"></div>
			<!-- grid -->
			<table id="grid-table"></table>
			<!-- 分页-->
			<div id="grid-pager"></div>
		</div>
	</div>
	
	<!-- 引入所需的js -->
	@include("/common/_listscript.html"){}
	
@}	